package com.igormaznitsa.mindmap.model;

import java.io.File;
import java.util.Set;
import java.util.regex.Pattern;

public interface TopicFinder<T extends Topic<T>> {
    /**
     * Check that topic contains content matches with pattern.
     *
     * @param topic      topic to be checked
     * @param baseFolder base folder for the project
     * @param pattern    pattern to find
     * @param extraTypes types of content
     * @return true if text found, false otherwise
     * @since 1.4.10
     */
    boolean doesTopicContentMatches(T topic, File baseFolder, Pattern pattern, Set<Extra.ExtraType> extraTypes);
}
